<%@ page import="java.text.SimpleDateFormat" %>
<%@ page import="java.util.Date" %><%--
  Created by IntelliJ IDEA.
  User: asus
  Date: 2019/12/8
  Time: 19:19
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
       <%
           SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日 HH:mm:ss");
           Date d=new Date(session.getCreationTime());
           %>
          session创建时间:<%=sdf.format(d)%><br>
          session的ID:<%=session.getId()%><br>
          session的属性值:<%=session.getAttribute("username")%><br>
          seession的属性组:<%
                           String []name=session.getValueNames();
                           for(int i=0;i<name.length;i++){
                               out.print(name[i]+"&nbsp;&nbsp;");
                           }

        %>
</body>
</html>
